package initialize

import (
	"github.com/gin-gonic/gin"
	"mxshop_api/order-web/middlewares"
	"mxshop_api/order-web/router"
)

func Routers() *gin.Engine {

	r := gin.Default()
	r.Use(middlewares.Cors())
	router.InitBaseRouter(r)
	group := r.Group("/v1")
	router.InitShopCartRouter(group)
	router.InitOrderRouter(group)
	return r
}
